<?php

use yii\helpers\Url;
use yii\helpers\ArrayHelper;
?>
<?php echo $this->render("//layouts/index_slider", ["sliderData" => $sliderData]); ?>
<div class="index-nav-btn">
    <ul class="mui-table-view mui-grid-view">
        <li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
            <a href="<?php echo Url::toRoute(["task/work"]); ?>">
                <div class="btn-circle circle-purple">
                    <span class="mui-icon mui-icon-home"></span>
                </div>
                <div class="mui-media-body fa-2x">体验好评</div>
            </a>
        </li>
        <li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
            <a href="<?php echo Url::toRoute(["taobao/index"]); ?>">
                <div class="btn-circle circle-pink">
                    <span class="mui-icon mui-icon-extra mui-icon-extra-computer"></span>
                </div>
                <div class="mui-media-body">淘宝任务</div>
            </a>
        </li>
        <li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
            <a href="<?php echo Url::toRoute(["question/index"]); ?>">
                <div class="btn-circle circle-green">
                    <span class="mui-icon mui-icon-compose"></span>
                </div>
                <div class="mui-media-body">问卷调研</div>
            </a>
        </li>
        <li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
            <a href="<?php echo Url::toRoute(["active/index"]); ?>">
                <div class="btn-circle circle-blue">
                    <span class="mui-icon mui-icon-person"></span>
                </div>
                <div class="mui-media-body">活动捧场</div>
            </a>
        </li>
    </ul> 
</div>
<div class="index-nav-btn2">
    <ul class="mui-table-view mui-grid-view">
        <li class="mui-table-view-cell mui-media mui-col-xs-6 mui-col-sm-6">
            <a href="<?php echo Url::toRoute(["signin/index"]); ?>">
                <div class="mui-pull-left mui-col-xs-8 signin-info">
                    <h5>签到抽奖</h5>
                    <p>领奖之后还有奖</p>
                </div>
                <div class="mui-pull-right mui-col-xs-4">
                    <img src="../images/signin.png" class="mui-media-object"/>
                </div>
            </a>
        </li>
        <li class="mui-table-view-cell mui-media mui-col-xs-6 mui-col-sm-6">
            <a href="#">
                <div class="mui-pull-left mui-col-xs-8 errand-info">
                    <h5>"微"任务</h5>
                    <p>轻轻松松做任务</p>
                </div>
                <div class="mui-pull-right mui-col-xs-4">
                    <img src="../images/errand.png" class="mui-media-object"/>
                </div>
            </a>
        </li>
    </ul> 
</div>
<?php if ($comTasks): ?>
    <div class="index-nav-btn2">
        <ul class="mui-table-view">
            <li class="mui-table-view-cell mui-media">
                <div class="mui-pull-left mui-col-xs-2">
                    <img src="../images/hykx.png" class="mui-media-object"/>
                </div>
                <div class="mui-pull-right mui-col-xs-10 signin-info" id="scroll-notice">
                    <ul class="mui-table-view">
                        <?php foreach ($comTasks as $item): ?>
                            <li class="mui-table-view-cell">  
                                <p><?php echo ArrayHelper::getValue($item, "username"); ?></p>
                                <p><span class="notice-title"><?php echo ArrayHelper::getValue($item, "description"); ?>，返佣￥<font color="red"><?php echo ArrayHelper::getValue($item, "amount"); ?></font></span></p>
                            </li>
                        <?php endforeach; ?>
                    </ul>
                </div>
                </a>
            </li>
        </ul> 
    </div>
<?php endif; ?>
<div class="mui-card">
    <div class="mui-card-header mui-card-media" style="height:40px;background-image:url(../images/logo.jpg)"></div>
</div>

<!--<div class="mui-row clo_btn_list">
    <a href="<?php //echo Url::toRoute(["account/tixian"]);     ?>" class="mui-tab-item">  
        <span class="mui-icon mui-icon-extra mui-icon-extra-prech mui-badge-yellow mui-badge-inverted"></span>  
        <span class="mui-tab-label">提现</span>
    </a>
    <a href="<?php //echo Url::toRoute("profile/xianxia");     ?>" class="mui-tab-item">  
        <span class="mui-icon mui-icon-extra mui-icon-extra-gold mui-badge-yellow mui-badge-inverted"></span>
        <span class="mui-tab-label">下线奖励</span>
    </a>
    <a href="<?php //echo Url::toRoute(["task/mynowork"]);     ?>" class="mui-tab-item">  
        <span class="mui-icon mui-icon-extra mui-icon-extra-order mui-badge-yellow mui-badge-inverted"></span>  
        <span class="mui-tab-label">我的任务</span>
    </a>
    <a href="<?php //echo Url::toRoute(["article/contact"]);     ?>" class="mui-tab-item">  
        <span class="mui-icon mui-icon-extra mui-icon-extra-comment mui-badge-yellow mui-badge-inverted"></span>  
        <span class="mui-tab-label">联系客服</span>
    </a>
    <a href="<?php //echo Url::toRoute(["profile/invite"]);     ?>" class="mui-tab-item">  
        <span class="mui-icon mui-icon-extra mui-icon-extra-share mui-badge-yellow mui-badge-inverted"></span>  
        <span class="mui-tab-label">邀请小伙伴</span>
    </a>
</div>-->
<?php $this->beginBlock('index-tip') ?>
app.handsHit();
app.scrollNotice();
<?php $this->endBlock() ?>  
<?php $this->registerJs($this->blocks['index-tip'], \yii\web\View::POS_END); ?>
